package com.ddw.meedeeuh.shared.movie.database;

public abstract class DBAudioFactory {

	public static DBAudio create(int audioId, int streamDetailsId,
			Integer channels, String codec, String language) {
		return new DBAudioImpl(audioId, streamDetailsId, channels, codec, language);
	}

	private static class DBAudioImpl implements DBAudio {

		private final int audioId;
		private final int streamDetailsId;
		private final Integer channels;
		private final String codec;
		private final String language;

		public DBAudioImpl(int audioId, int streamDetailsId,
			Integer channels, String codec, String language) {
			this.audioId = audioId;
			this.streamDetailsId = streamDetailsId;
			this.channels = channels;
			this.codec = codec;
			this.language = language;
		}

		@Override
		public String getCodec() {
			return this.codec;
		}

		@Override
		public String getLanguage() {
			return this.language;
		}

		@Override
		public Integer getChannels() {
			return this.channels;
		}

		@Override
		public int getAudioId() {
			return this.audioId;
		}

		@Override
		public int getStreamDetailsId() {
			return this.streamDetailsId;
		}

	}

}
